//********************************************
// Copy Right: zdt3476@163.com
// File Name: StageLayer.h
// Create time: 2015年8月8日12:46:02
// Created by: No.20
//*********************************************
#ifndef _STAGELAYER_H_
#define _STAGELAYER_H_
#include "common.h"
#include "ui/UIPageView.h"

class StageLayer : public Layer
{
public:
	CREATE_FUNC(StageLayer);
	StageLayer();
	static Scene* createScene();

	virtual bool init() override;

	void turningCallBack(Ref *pSender, ui::PageView::EventType type);

private:
	Size visibleSize = Director::getInstance()->getVisibleSize();
	Point visibleOrigin = Director::getInstance()->getVisibleOrigin();
	const size_t PAGE_COUNT = 20;
	int m_curPageIdx = 0;
	Label* m_idxShow;
};

#endif // _STAGELAYER_H_